package struts.tools;

import java.util.ArrayList;
import java.util.HashMap;

public class WebSiteData {

	private static ArrayList<Data> dataPages=new ArrayList<Data>();;
	private static HashMap<String,String> ressources=new HashMap<String, String>();
	private static int nb_Label=0;
	
	public static void addData(Data data){
		dataPages.add(data);
	}
	
	public static ArrayList<Data> getDataPages(){
		return dataPages;
	}
	
	public static HashMap<String,String> getRessources() {
		return ressources;
	}
	
	public static void addRessource(String key,String value){
		ressources.put(key, value);
	}
	
	public static String generateLabelID(){
		nb_Label++;
		return "label_"+nb_Label;
	}
}
